<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>错误 - 图书馆座位预约系统</title>
    <link rel="stylesheet" th:href="@{/css/style.css}">
    <style>
        body {
            background: #f0f2f5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 60px 0 80px;
        }

        .container {
            max-width: 800px;
            margin: 50px auto;
            padding: 40px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        h2 {
            color: #e74c3c;
            font-size: 32px;
            margin-bottom: 20px;
        }

        p {
            font-size: 18px;
            color: #34495e;
            margin-bottom: 30px;
        }

        .error-icon {
            font-size: 64px;
            color: #e74c3c;
            margin-bottom: 20px;
        }

        .nav-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .nav-links a {
            padding: 10px 20px;
            background: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            background: #2980b9;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(41, 128, 185, 0.4);
        }

        nav {
            background: #2c3e50;
            padding: 15px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
            gap: 30px;
        }

        nav a {
            color: white;
            font-size: 16px;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #3498db;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .container {
                padding: 25px;
                margin: 20px;
            }

            h2 {
                font-size: 28px;
            }

            p {
                font-size: 16px;
            }

            .nav-links {
                flex-direction: column;
                gap: 15px;
            }

            nav ul {
                gap: 15px;
                flex-wrap: wrap;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="error-icon">❌</div>
    <h2>糟糕，出错了！</h2>
    <p th:text="${errorMessage}">默认错误信息</p>
    <div class="nav-links">
        <a href="/seats">🏷️ 返回座位选择</a>
        <a href="/history">📜 查看预约历史</a>
        <a href="/announcements">📢 查看公告</a>
    </div>
</div>
<nav>
    <ul>
        <li><a href="/login">🔑 登录</a></li>
        <li><a href="/register">📝 注册</a></li>
        <li><a href="/seats">💺 座位选择</a></li>
        <li><a href="/announcements">📢 公告</a></li>
    </ul>
</nav>
</body>
</html>